<?php
/* Very useful helper on the backend, where select fields that do not need to be edited
much can be used to jus show he selected value & not other values, that way data to be fetched for the
display is lesser hence faster conditional put in place to see if no value is set in place then jus 
show a None Selected with blank value
*/

foreach($value as $key=>$val){
  if($val['active'] == 1){
    $user_id = $val['id'];
    $user_name = $val['name'];
  }
}

if(!empty($user_id)){
?>

<select class="form pick1 <?php echo $name; ?>">
<option value="">-- Select one --</option>
<option selected="" value="<?php echo $user_id; ?>" class="option active"><?php echo $user_name; ?></option>
</select>

<?php }else{ ?>

<select class="form pick1 <?php echo $name; ?>">
<option value="">-- None Selected --</option>
</select>

<?php } ?>